package com.aigyun.statistic.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author lius
 * @since 2019-07-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_pay_order")
public class PayOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 订单号
     */
    private String orderNo;

    /**
     * 植保订单id
     */
    private String taskId;

    /**
     * 订单金额
     */
    private Double price;

    /**
     * 订单状态 0 支付 1未支付
     */
    private Integer state;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 支付人id
     */
    private Long regId;

    /**
     * 支付人角色
     */
    private Integer role;

    /**
     * 0支付宝支付 1微信支付 2私下转账
     */
    @TableField("payType")
    private Integer payType;

    /**
     * 1植保作业
     */
    private Integer type;

    private String uuid;

    /**
     * 支付时间
     */
    private LocalDateTime payTime;


}
